-- clean_debuff
-- create by panyl
-- 技能：清除所有负面状态

return {
    apply = function(source, target, skillId, round, para, extra)
        -- 清空负面状态
        CombatStatusM.clearStatusByType(target, COM_STATUS_DEBUFF);
        CombatStatusM.clearStatusByType(target, COM_STATUS_DAMAGE);
        -- 清空debuff
        PropM.deleteProp(target, "debuff");

        -- 增加命中动作
        SkillM.getSequence(target):hit(source, target, skillId);

        -- 作用目标
        return { target, };
    end,

    parse = function(desc)
        local arr = string.explode(desc, ",");
        return { tonumber(arr[1]), };
    end,

    -- 解析技能描述
    parseDesc = function(source, skillId, desc, para)
        -- 不需要解析
        return desc;
    end,
};
